package recycleTest 
{
	import asunit.asserts.assertEquals;
	import asunit.asserts.assertTrue;
	import com.greensock.TweenLite;
	/**
	 * ...
	 * @author henrylee   Any question, pls contact me.	henrylee_sz@qq.com
	 */
	public final class ProcessPackageTest 
	{
		
		//private var process:TestProcess;
		
		[Before]
		public function initialize():void
		{
			//process = new TestProcess();
		}

		[After]
		public function tearDown():void
		{
			//由于有延时调用，此处暂时不清除
			//if (process != null)
				//process.remove();
		}
		
		[Test]
		public function addNode():void
		{
			const process:TestProcess = new TestProcess();
			var ai: Object = { 'comattack': 1, 'others': 2};
			process.doAI(ai, onDone1);
			
			
			TweenLite.delayedCall(0.1, function():void {
					process.remove();
				});
		}
		
		public function onDone1():void
		{
			assertTrue("onDone1", false);
		}
		
		[Test]
		public function testEx():void
		{
			const process1:TestProcess = new TestProcess();
			var ai: Object = { 'comattack': 1, 'others': 2};
			process1.doAI(ai, onDone);
		}
		
		public function onDone():void
		{
			//assertTrue("onDone1", false);
		}

		
	}

}